package com.impl.baseUtil;


import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum ResultCodeEnum {


    SUCCESS(true,20000,"成功"),

    UNKNOWN_REASON(false,20001,"未知错误"),
    BAD_SQL_GRAMMAR(false,21001,"SQL语句错误"),
    JSON_PARSE_ERROR(false,21002,"json解析错误"),
    PARSE_ERROR(false,21003,"参数不正确"),

    FILE_UPLOAD_ERROR(false,21004,"文件上传错误"),
    FILE_DELETE_ERROR(false,21005,"文件删除错误"),
    EXCEL_DATA_IMPORT_ERROR(false,21006,"Excel数据导入错误"),

    VIDEO_UPLOAD_ALIYUN_ERROR(false,22001,"视频上传至阿里云失败"),
    VIDEO_UPLOAD_TOMCAT_ERROR(false,22002,"视频上传至Tomcat失败"),
    VIDEO_DELETE_ALIYUN_ERROR(false,22003,"视频在阿里云删除失败"),
    FETCH_VIDEO_UPLOADAUTH_ERROR(false,22004,"获取上传地址和凭证失败"),
    REFRESH_VIDEO_UPLOADAUTH_ERROR(false,22005,"刷新上传地址和凭证失败"),
    FETCH_PLAYAUTH_ERROR(false,22006,"获取播放凭证失败"),

    URL_ENCODE_ERROR(false,23001,"url编码错误"),
    ILLEGAL_CALLBACK_REQUEST_ERROR(false,23002,"非法回调"),
    FETCH_ACCESSTOKEN_ERROR(false,23003,"获取AccessToken错误"),
    FETCH_USERINFO_ERROR(false,23004,"获取用户信息错误"),
    LOGIN_ERROR(false,230005,"登录失败"),

    COMMENT_EMPTY(false,24001,"评论内容必须填写"),

    PAY_RUN(false,25000,"支付中"),
    PAY_UNIFIEDOERROR_ERROR(false,25001,"下单错误"),
    PAY_ORDERQUERY_ERROR(false,25002,"查询支付结果失败"),
    ORDER_EXIST_ERROR(false,25003,"课程已经够买"),

    GATEWAY_ERROR(false,26000,"服务器不能访问"),

    CODE_ERROR(false,28000,"验证码错误"),
    LOGIN_PHONE_ERROR(false,280001,"手机号错误"),
    LOGIN_PASSWORD_ERROR(false,28002,"登录密码错误"),
    LOGIN_ACCOUNT_ERROR(false,280003,"账号错误"),
    LOGIN_DISABLED_ERROR(false,280004,"该用户已被禁用"),
    LOGIN_AUTH(false,280005,"需要先登录"),
    LOGIN_ACL(false,280006,"您权限不足"),
    SMS_SEND_ERROR(false,28007,"短信发送失败"),
    SMS_SEND_ERROR_BUSINESS_LIMIT_CONTROL(false,28008,"发短信过于频繁");



    private Boolean success;
    private Integer code;
    private String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
